/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.viettel.bkno.visionone.exception;

import javax.xml.ws.WebFault;

/**
 *
 * @author hien
 */
@WebFault(faultBean = "com.viettel.bkno.visionone.exception.CoreServiceFault")
public class CoreServiceException extends Exception {

    CoreServiceFault faultInfo;

    public CoreServiceException(CoreServiceFault fault) {
        super(fault.getFaultString());
        this.faultInfo = fault;
    }

    public CoreServiceException(CoreServiceFault fault, String message) {
        super(message);
        this.faultInfo = fault;
    }

    public CoreServiceException(CoreServiceFault fault, String message, Throwable cause) {
        super(message, cause);
        this.faultInfo = fault;
    }
    
    public CoreServiceException(String message) {
        super(message);
    }

    public CoreServiceFault getFaultInfo() {
        return faultInfo;
    }

    public void setFaultInfo(CoreServiceFault faultInfo) {
        this.faultInfo = faultInfo;
    }

    
}
